

const Model = {
  namespace: 'myItemList',
  state: {
    showDetail: false,
    currentRow: undefined,
    tab: 'tab1',
  },
  effects: {},
  reducers: {

    setTab(state, { payload }) {
      return { ...state, tab: payload };
    },
    setShowDetail(state, { payload }) {
      return { ...state, showDetail: payload.showDetail, currentRow: payload.currentRow };
    },
  },
};
export default Model;
